package com.itheima.HomeWork_day06;
/*
String和StringBuilder的比较:
 */
public class InterviewQuestion {
    public static void main(String[] args) {

        String s="aaaa";
        StringBuilder sb=new StringBuilder("aaaa");


        //两个类型不相同,故返回false
        System.out.println(s.equals(sb));

        //StringBuilder中没有equals方法,是继承的object是"==",返回false
        System.out.println(sb.equals(s));



    }
}
